/**
 * Created by CHENJI5 on 5/27/2016.
 */
function getQueryStringByName(name) {
    var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
    if (result == null || result.length < 1) {
        return "";
    }
    return result[1];
}
$(document).ready(function(){

    var displayError = getQueryStringByName('e');
    if(displayError=='true'){
        $("#div_error_msg").show();
    }
    else{
        $("#div_error_msg").hide();
    }

    $("#loginEmail").focus();
    $(".btn-login").bind("click",function(){
        window.location.href="homepage.html"
    })
})